let mainRouter = [
  {
    path:'gridview',
    component: () => import('../views/MyGridView.vue'),
    meta:{
      title: '表格组件',
      roles:['admin']
    }
  },
  {
    path:'de',
    component: () => import('../views/MyDirective.vue'),
    meta:{
      title: '自定义指令',
      roles:['admin','teacher']
    }
  },
  {
    path:'permission',
    component: () => import('../views/Permission.vue'),
    meta:{
      title: '按钮级别的权限控制',
      roles:['admin','viewer']
    }
  },  {
    path:'request',
    component: () => import('../views/Request.vue'),
    meta:{
      title: '请求失败重新请求',
      roles:['admin','viewer','teacher']
    }
  },
  {
    path:'',
    redirect: 'gridview'
  }
];



export default mainRouter
